Personaling TorrentStrike login screen
Hi, i'm currently trying to design my tracker and i'm using torrentstrike 0.4. However, i want my login screen to show very little of my sites content and i want the "stats" and torrent categories boxes to not appear at the login screen. how can i change that? i'm using the icgstation theme that comes with it. what should i edit? thanks :sos:
|
Are you wanting these removing altogether ? or just to be viewed for members only?
|
PHP Code:
|
Personaling TorrentStrike login screen
@daffy, basically what i want is for the boxes such as: stats & categories not to be shown at the login screen. only once the user logs in should they be able to see the boxes. how do i do this?
Bump: Quote:
|
post your stdhead mate. that code what joos showed you is what you need to add. you need to add
Code:
if(isset($CURUSER)) { and Code:
} so your categories will be from Code:
categories_block("Cats"); Code:
if(isset($CURUSER)) { |
Aye like daffys says - just follow that..
PHP Code:
PHP Code:
Now remember to use php tags to break in and out otherwise whitey screens and syntax errors unless your aware of that scenario. PHP Code:
|
Personaling TorrentStrike login screen
thanks a lot guys, will try it and see how it goes!
|
If you dont manage it then simply post back with a section of the code and we can show you what you need to do, that way you learn and know how to do the rest : )
|
Personaling TorrentStrike login screen
@Bigjoos, okay will see how it goes. thanks
EDIT: got the hang of it guys and its working great. the boxes don't show anymore, only when the user logs in. thats exactly what i wanted. thanks! Bump: Okay guys, sorry to bother again, but i'm sitting with another problem: i removed the "General" box successfully and now i'm trying to remove the "Stats" and "NZB's" boxes. i'm not too sure what to do here, and when i try always get errors. what am i doing wrong? here is the code below: stdfoot.php PHP Code:
EDIT: if you want me to upload the actual file, just give me a shout, okay. |
upload the file bud
|
Personaling TorrentStrike login screen
1 Attachment(s)
okay daffy, i attached it to this post. thanks for all the trouble! :ok:
|
1 Attachment(s)
here
|
Personaling TorrentStrike login screen
@daffy, i tried it and now the "stats" and "nzbs" can't be seen even once i logged in. how can i fix this, i need the boxes to show once the user logs in? thanks :-)
|
1 Attachment(s)
Sorry, i read wrong, it sounded like you wanted these removed altogether. ok try this.
|
Personaling TorrentStrike login screen
hey @daffy, thanks for all the help. its working now, but there seems to be an error with the NZB's block. The error is as follows:
-------------------------------------------------------------------------- Fatal error: Call to undefined function phpnzb_categories_list() in /home/binzawgm /public_html/themes /ICGstation /stdfoot.php on line 60 -------------------------------------------------------------------------- I'm sorry that i'm asking so much questions, etc. but I guess it's the best way to learn for now. how do i solve this? Thanks :ok: EDIT: Never mind, sorted it out. had to be changed to . All is well again. thanks so much! Kanpai! :ok: |
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Personaling TorrentStrike login screen
Hey guys, thanks for all the help over the past few weeks/days (bigjoos and daffy). But now I'd like to remove the panels at the top of the screen that say:
Home, Browse, Profiles, Forum, FAQ How would i go about removing this only when the user is not logged in, just like with the "Stats" boxes, etc. I want it to only appear once the user has logged on. I understand that I need to edit the stdhead.php file (for those who don't know, i'm using torrentstrike) but what exactly should i remove or add in the code? I have attached stdhead.php to the post, since I'm using a modded version of TStrike. Thanks :ok: |
no seriously, how do i remove the panels?
|
Quote:
post your .php file please, i cannot see it |
Personaling TorrentStrike login screen
1 Attachment(s)
oh sorry, forgot to attach the file to my previous post. here's the stdhead.php file. thanks again @daffy for helping.
|
1 Attachment(s)
try this, should only see home link, and other links when logged in
|
Personaling TorrentStrike login screen
thanks a lot daffy, its working good and looks the way it should. thanks so much man, cheers! :ok:
|
No problem. :ok:
|
All times are GMT +2. The time now is 10:50. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.