1
etcetera
Re: multiple avatars on newbb
  • 2009/7/12 18:19

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


a tiny bit of progress...


looking at this, in the file you just named:
Quote:

$icons_radio = new XoopsFormRadio(_MD_MESSAGEICON, 'icon', $icon);
$subject_icons = XoopsLists::getSubjectsList();
foreach ($subject_icons as $iconfile) {
$icons_radio->addOption($iconfile, '<img src="'.XOOPS_URL.'/images/subject/'.$iconfile.'" alt="" />');
}
$forum_form->addElement($icons_radio);


Is there a way to change this to:
if myfield1 is not null,
display myfield1
if myfield2 is not null,
display myfield2

etc. In which myfields are custom fields from the user profile?



Also, because <{$topic.topic_icon}> is written for the viewforum page, and I need it for the newbb_thread page, how/where would I need to alter code so that it would display as <{$topic_post.topic_icon}> instead?



2
etcetera
Re: multiple avatars on newbb
  • 2009/7/11 19:33

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


ok, rephrase: WHERE is the template for the reply form on newbb?



3
etcetera
Re: multiple avatars on newbb
  • 2009/7/10 20:18

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


The purpose IS to distinguish the identity of the user. I was hoping for multiple avatars, because the forum I want them for is a roleplay. Each member plays up to 8 characters from one account. It would be very useful for distinguishing one character from another.

Using the message icon is a good idea, though. Is there a template for the reply form somewhere that I'm not seeing?



4
etcetera
Re: multiple avatars on newbb
  • 2009/7/9 23:19

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


It just occurred to me that there's a whole new world of requirements to set an avatar for each post and not change your avatar on all of your other posts. Is this too hard to do?



5
etcetera
Re: Calling custom fields in user profiles
  • 2009/7/8 19:21

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


Thanks much! :)



6
etcetera
Re: Calling custom fields in user profiles
  • 2009/7/8 15:26

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


Take another look at my first post. I want to be able to call each variable individually so that I can have users insert a URL in certain fields and have that URL display as a clickable link or as an image, instead of just raw text.



7
etcetera
multiple avatars on newbb
  • 2009/7/7 21:52

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


XOOPS 2.3.3; newbb 3.08

My idea: I want to create new fields in the user profiles, in which users can insert links for multiple avatars, then allow users to select which avatar they will be posting with through a drop-down menu, checkbox, or whatever is easiest, on the post/reply form for newbb.

I would like to use [url=https://xoops.org/modules/newbb/viewtopic.php?start=10&topic_id=68575&viewmode=flat&order=ASC&type=&mode=0]this[url] to post the correct user field as an avatar on the forum.

I'm sure you guys are getting tired of my questions by now... but for the lucky few who have not run into one of them yet, I will reiterate: I know absolutely no PHP, so if anyone is bored and kind, it would be very much appreciated if you could write some code for me towards this. :)

I need:

1. The form for users to select which avatar (myfield1 - myfield8) they would like to use on this post (and where to put it).

2. An if command to find which avatar was selected for that particular post, and post it - use link above for posting a custom field on the forum.


I hope this is feasible; thank you so much!



8
etcetera
Re: Calling custom fields in user profiles
  • 2009/7/7 19:52

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


I honestly know zero PHP. I attempted to use that first code, sans the <{foreach}>, and it did print the variable... but for the person viewing, not for the profile being viewed.

I'll keep poking at it, but since I'm fairly certain that call to the users block is pretty important and don't personally know how to reroute it for my needs... would it be too much to ask someone to alter this specifically for the user info template?



9
etcetera
Calling custom fields in user profiles
  • 2009/7/6 20:23

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


Hi there,

I was wondering, because I know nothing of PHP, if anyone would be kind enough to write code for me which will allow me to call custom user fields individually on the user profiles. I.e., if I want to add the fields "Gender" and "Age", I would like a command which will call and print only Gender or only Age for the user whose profile you are currently viewing.

The end result, to help you get a picture of what I am asking: I would like to create a new template for profiles which will embed all user fields in html, allowing me to set new CSS styles for certain fields, to take links saved as fields and make them appear as clickable links or as images, etc.

This request isn't imperative, but it would be very much appreciated.

Would anyone be so kind as to help me?



10
etcetera
Re: Display new field in newbb
  • 2009/7/6 10:50

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


bump?




TopTop
(1) 2 3 »



Login

Who's Online

178 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits