Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2002
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 14
Any idea on how to add the Message Icon the user selects for the message when they post a message to the Title and User name links that are built in the Content Islands?

In otherwords.... so it has the icon like the old "Latest Threads" Mod had....

Sponsored Links
Joined: Mar 2002
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 14
help hehehe

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
This should be pretty easy, actually... the CI generation routines in public_ci_posts get a complete set of metadata for each topic... $topics->{$indie}->[17] is the icon number for the last post... index 4 is the icon for the topic itself.


UBB.classic: Love it or hate it, it was mine.
Joined: Mar 2002
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 14
ahhh ok... I put mine in the css section.... didnt look at the others since I dont intend to use them but...

in the css area I did the following:

Replace
Code
[/code]with
[code]
I'm sure there's a "prettier" way but *shrug* that works... thumbsup Thanks!

Joined: Mar 2002
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 14
Oh... is there a place to find a list of those "variables" for the various items like that icon? Or at least a certain spot in the code that it should be obvious from looking at it?

Thanks

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
They're quite well-hidden... smile

Those arrayrefs are from the forum_thread_data files. You can find a map to the indexes / values in ubb_forum.cgi, around the EACHTOPIC foreach.


UBB.classic: Love it or hate it, it was mine.
Joined: Mar 2002
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 14
Eeek... it seems my first adjustment to the code had a minor "problem" with it... I appeared to have stuck it in a part of the code that only applied if it was a reply message. In otherwords 1st post gets no icon because the code only inserted it in the 2nd, 3rd, 4th, etc (*cough ne "00000" should have been obvious coughcough*)

sooooo round 2... undo what I said above... then

Replace
Code
[/code]with
[code]
This will work for the CSS and HTML it looks like since they seem to be the same. The RSS is different. No idea on that since I dont do RSS stuff...


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)