HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Disable 'Join' link on OCP

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#33181 (In Topic #7492)
Avatar

Community saint

HI GUYS!!

It's me again!! Been up to my ears building websites (:thumbs:). I guess you haven't missed some of my dumber questions…

Anyway, I am doing a special site that has no public members and is private by invitation only, so the board will be kept permanantly 'offline' (yeah, I have some pretty dumb ideas, I know).

I want to remove the 'join' hyperlink on the login page and change the wording/add an image. Where would I do this please??

:D
 

 





Back to the top
 
Posted
Rating:
#33188
Avatar

Community saint

You could remove it from the templates, I did that before as I wanted them to register from the forum.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33189
Joe
Avatar

Honoured member

The 'join' link is displayed in numerous places. I'm not very experienced with PHP, but you could probably edit the sources/blocks/side_personal_stats.php file to exclude the 'join' link in that block. I'm assuming the part you'd need to edit would be somewhere around line 147 or below of that file. We'll let Chris decide on this one just in case.

The 'join' link is also displayed in the 'welcome' block. You can edit this as well as edit other languages by opening up lang/EN/global.ini and changing line 592 to whatever you want.

Don't forget to remove the {1} in that line, as this is what displays the "join/login" links to guests.

As for removing the link from the login page, you'd need to edit the pages/modules/login.php. I'd give you more details, but I'm not very familar with PHP. :)

Back to the top
 
Posted
Rating:
#33190
Joe
Avatar

Honoured member

Ami, ocPortal redirects to the board's registration URL when the 'register' link is clicked, doesn't it?

Back to the top
 
Posted
Rating:
#33191
Avatar

Community saint

 

Joe said

Ami, ocPortal redirects to the board's registration URL when the 'register' link is clicked, doesn't it?
 
Yes I know but in one of the version of 3 it did not work but it was fixed in a patch and has not been a problem seince.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33206
Avatar

To elaborate on what Joe said…

1) The login block.
There's no need to change any PHP files, just strip this code:

Code

{+START,IF_NON_EMPTY,{REGISTER_LINK}}<a href="{REGISTER_LINK*}">{!_JOIN}</a> | {+END}[/box]
from the BLOCK_SIDE_PERSONAL_STATS_NO template.

2) Welcome block.
I'd just turn off the welcome block and replace it with some text of your own – however if you do want a special message for those logged in, follow Joe's advice.

3) Edit the 'LOGIN_TEXT' language string from the global language file. You just need to make sure it doesn't mention joining (or {1}).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#33210
Avatar

Community saint

 
Brilliant - thanks for your help again as always.

As I said at the it is a members only site and will be permanantly closed to the public, so removing the link entirely once inside is not a problem as I can just disable new registrations. But if people come across the site, I don't think it is right to have the link on the closed site page.

Letting me loose in HTML documents is like putting a surgeon into an operating theatre with a chainsaw, and I lost my second OCP site by being a bit too over-eager (ruined it beyond repair).  :lol: That is just my way of doing things - I learn by dismantling what is already there and wait until it breaks…

 





Back to the top
 
Posted
Rating:
#33231
Avatar

Community saint

 

Joe said

….opening up lang/EN/global.ini and changing line 592 to whatever you want….
 
I thought it a bit wierd when you specified line '592' - I write directly to my files online via plesk (I went crosseyed looking through the file, I can tell you and even changing it appeared not to work).

Anyway, I suddenly realised today when I opened up Dreamweaver for the first time that it numbers all the lines. I call that cheating!!! ;)

 





Back to the top
 
Posted
Rating:
#33254
Joe
Avatar

Honoured member

Robbie said

…I can tell you and even changing it appeared not to work

That's because you have to clear your cache. ;) A good way to edit files online is via the inbuilt "file editor" in ocPortal (ah geez… Chris, you can hit me later. :P). This keeps you from having to clear your caches everytime you edit an ocPortal file.

I personally don't like the inbuilt system, as it doesn't highlight (syntax highlighting) the contents of the file; although no program does this with these language files as they're considered .txt files. I usually edit files manually with Notepad2. :)

There's no such thing as cheating–numbering the lines, I guess, was just a feature implemented into most advanced text editors for easier browsing and searching of content. If someone were to tell you to search for something and replace it with some other text that appeared in the file numberous times, you wouldn't know exactly which one to replace, whereas if they specified a number of a specific line, you'd get a better idea of what you're replacing.

Back to the top
 
Posted
Rating:
#33255
Avatar

Community saint

I do not use the built in editor that much either but it does make back ups which is nice.
I use kedit or phpdesigner depending on what operating system I am in.
Right now I am in puppy linux and for it I use greany editor.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33256
Joe
Avatar

Honoured member

Joe said

no program does this with these language files as they're considered .txt files

Sorry. What I meant was these .ini files are considered as just plain text; there are no variables or statements as most scripting languages have.

Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: