XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author:

New Icon Image for each forum id - completed

Phil1ooo
Member
***




Posts: 85
Registered: 4-24-2013
Member Is Offline


[*] posted on 5-10-2013 at 12:59 AM
New Icon Image for each forum id - completed


I have added this in the admin under forums which allows for a url to an icon to be displayed for each forum name.

Now the question is.. How to make this work so it follows the forum name.?



10-05-2013 10-55-09 AM.png - 9kB




View user's profile View All Posts By User
socks
New Poster
**




Posts: 4
Registered: 5-11-2013
Member Is Offline


[*] posted on 5-11-2013 at 06:58 AM


I had a quick look into the source and made a quick mod for it.
Attached is the zip files with the edited files and a readme file.

If your XMB is unmodded, you can probably just upload the files and overwrite them. If not, you can follow the instructions.

Note that because I am unsure of how to add new language strings, all the text is hardcoded.

index.PNG - 2kB creating.PNG - 2kB editing.PNG - 5kB

Edit: Temporarily removed the mod.
View user's profile View All Posts By User
lottos
Administrator
Thread Moved
5-11-2013 at 06:59 AM
lottos
Administrator
********




Posts: 357
Registered: 6-3-2002
Location: Competitions Australia: https://www.lottos.com.au/
Member Is Offline

Mood: pass me a TimTam

[*] posted on 5-11-2013 at 07:08 AM


Thanks "socks" !

:)




Largest list of competitions online!
View user's profile Visit user's homepage View All Posts By User
Phil1ooo
Member
***




Posts: 85
Registered: 4-24-2013
Member Is Offline


[*] posted on 5-11-2013 at 08:13 AM


Thanks heaps for that.

I just installed it and the image doesn't save so it doesn't display at front end.

Checked to see if it was in database. The icon table is there but it says NULL inside instead (I presume) the icon image name.

Any ideas?




View user's profile View All Posts By User
socks
New Poster
**




Posts: 4
Registered: 5-11-2013
Member Is Offline


[*] posted on 5-11-2013 at 08:15 AM


I must have missed out a step. Let me check it and get back to you on that.
View user's profile View All Posts By User
socks
New Poster
**




Posts: 4
Registered: 5-11-2013
Member Is Offline


[*] posted on 5-11-2013 at 03:21 PM


I did a clean install on http://www.iamsani.net/xmb/ and it works, I only missed out a step where you can't edit the image location.

Can I have your copy of cp.php and functions.inc.php?
View user's profile View All Posts By User
Phil1ooo
Member
***




Posts: 85
Registered: 4-24-2013
Member Is Offline


[*] posted on 5-11-2013 at 09:25 PM


Quote: Originally posted by socks  
I did a clean install on http://www.iamsani.net/xmb/ and it works, I only missed out a step where you can't edit the image location.

Can I have your copy of cp.php and functions.inc.php?


Hi

No problem. I have other mods installed so please don't change the file themselves, LOL

Attachment: cp.php (114kB)
This file has been downloaded 182 times

Attachment: functions.inc.php (76kB)
This file has been downloaded 201 times





View user's profile View All Posts By User
socks
New Poster
**




Posts: 4
Registered: 5-11-2013
Member Is Offline


[*] posted on 5-12-2013 at 01:10 AM


I wouldn't change your fiels without asking, heh.

Anyhow, I copied your cp.php and functions.inc.php and overwrote my copy on the server, and it still works.

My only other guess is that the database is somehow not saving the image path, or the templates index_forum and forumdisplay_subforum are somehow not calling $icon.
View user's profile View All Posts By User
Phil1ooo
Member
***




Posts: 85
Registered: 4-24-2013
Member Is Offline


[*] posted on 5-12-2013 at 06:48 AM


Quote: Originally posted by socks  
I wouldn't change your fiels without asking, heh.

Anyhow, I copied your cp.php and functions.inc.php and overwrote my copy on the server, and it still works.

My only other guess is that the database is somehow not saving the image path, or the templates index_forum and forumdisplay_subforum are somehow not calling $icon.


I tried to see if I could add a new forum/board and that wasn't working as well so I just did a test using backed up cp & functions files which means the only difference is this mod is not installed and my forum works as it should meaning I can add new forums/boards.

SO there must be something in my cp or functions file which is conflicting with the code you wrote which stops these things from working.

I have no idea what but I do now it comes from this mod.





View user's profile View All Posts By User
Phil1ooo
Member
***




Posts: 85
Registered: 4-24-2013
Member Is Offline


[*] posted on 5-12-2013 at 07:07 AM


Quote: Originally posted by socks  
I wouldn't change your fiels without asking, heh.

I didn't think you would but I felt safer mentioning it.

Quote: Originally posted by socks  
Anyhow, I copied your cp.php and functions.inc.php and overwrote my copy on the server, and it still works.

My only other guess is that the database is somehow not saving the image path, or the templates index_forum and forumdisplay_subforum are somehow not calling $icon.


I just did a test in my test forum which is a default script and it does work well so it must be some other MOD which I have installed on my forum which conflicts with yours.

The 2 files used where the exact same ones I sent you.

Can something be done to bypass that conflict?

My image is the folder.

12-05-2013 5-05-25 PM.png - 9kB




View user's profile View All Posts By User
lottos
Administrator
********




Posts: 357
Registered: 6-3-2002
Location: Competitions Australia: https://www.lottos.com.au/
Member Is Offline

Mood: pass me a TimTam

[*] posted on 5-12-2013 at 01:18 PM


Quote: Originally posted by Phil1ooo  

I just did a test in my test forum which is a default script and it does work well so it must be some other MOD which I have installed on my forum which conflicts with yours.

The 2 files used where the exact same ones I sent you.

Can something be done to bypass that conflict?

My image is the folder.




This would indicate you have made an error with one of your previous hacks.




Largest list of competitions online!
View user's profile Visit user's homepage View All Posts By User
Phil1ooo
Member
***




Posts: 85
Registered: 4-24-2013
Member Is Offline


[*] posted on 5-12-2013 at 09:51 PM


I'm not say there isn't but each hack that I have installed was put in the way it was mentioned at the time and I have never had an error problem when doing them.

I have no error files indicated in my files which would suggest that all is OK.

Now if one is wrong, finding it would be a major issue as it would mean having to un-install each one and start from scratch.

In my case this could cause a problem as I have the registration, users control panel, awards, shop, pretty much everything except the actual forum board posts/threads which are all connected as one single process which means all users use a single control panel for all the forums.

Sorter my own SSO system which works quite well.

Anyhow as long as this hack works for the guy that wanted it then it's no issue but I might have a look at it in my spare time unless socks can come up with a solution.

Socks thanks for you great help on this hack as it was very much appreciated, You should add it to the Hacks list as I'm sure many others would love it as well.
Lottos I also thank you for your time as xmb would be lost without you. I can only wish I could do what you guys do and also happy to help/assist where ever I can as xmb deserves all the support it can get to build it back up.

Cheers




View user's profile View All Posts By User
lottos
Administrator
********




Posts: 357
Registered: 6-3-2002
Location: Competitions Australia: https://www.lottos.com.au/
Member Is Offline

Mood: pass me a TimTam

[*] posted on 5-12-2013 at 10:20 PM


My suggestion would be to grab fresh, untouched copies of the files that are updated by the image hack. Get backup copies of the files you currently use.
With the fresh files, reinstall the relevent hacks and only update the fresh files. Retest.




Largest list of competitions online!
View user's profile Visit user's homepage View All Posts By User

  Go To Top

Powered by XMB 1.9.11 (Debug Mode)
Forum Script Software by XMB © 2001-2019 The XMB Group
[Queries: 16] [PHP: 21.1% - SQL: 78.9%]
Funded with thanks to competitions website.