Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Jan 2021, 22:52
NovoCiv NovoCiv is offline
 
Join Date: Aug 2010
How to add variable from user table to template

Today I had to upgrade from vBulletin 4.0.5 to the latest 5.6.4 due to the server forcing me into the modern world with PHP 7.4.

All of my 10+ years of custom code and modifications is lost. I hate it but that's life.

I just want to recover the ucash balances (which are in the user table in the database) and display them under posts. I know that doing things like earning new points for posting and trading points isn't going to happen. It seems like vbulletin 5 is not easy to mod.

But for the sake of preserving our history, I just want to show the ucash balances.

Can someone help me with how I would do this in a template edit? Everything I know from vBulletin 4 is outdated.
Reply With Quote
  #2  
Old 15 Jan 2021, 01:17
shka shka is offline
 
Join Date: Mar 2016
Which table columns and where / how to display (screenshot from old system)?
Reply With Quote
  #3  
Old 15 Jan 2021, 07:59
NovoCiv NovoCiv is offline
 
Join Date: Aug 2010
The ucash column of the user table. I can't make screenshots of the old system because it became unusable when PHP was updated, and now the forums are on 5.6.4.

Ucash is just a float value.
Reply With Quote
  #4  
Old 15 Jan 2021, 10:38
shka shka is offline
 
Join Date: Mar 2016
If you don't have a screenshot - you should describe where you want to show it. This is not a default vbulletin field, I don't know the meaning of it.

Screenshot of actual board and paint where what.


Or anyone other who knows which mod this field published
Reply With Quote
  #5  
Old 16 Jan 2021, 00:17
NovoCiv NovoCiv is offline
 
Join Date: Aug 2010


I want to just put a line below posts: #
I found the template conversation_userinfo and i can put static text there, but not the variable that shows the points balance from the ucash column of the user table.

In vb4 I could do it on the postbit_legacy template.
The ucash mod can be found here
https://vbulletin.org/forum/showthread.php?t=227910

I couldn't find any points mod for vb5.



As a side note i wouldn't mind getting rid of those ugly Facebook/twitter share buttons too.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:53.

Layout Options | Width: Wide Color: