51
3lr0n
Re: data from custom user fields on forums
  • 2009/4/28 15:27

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


bump!
Spanish Overclocking Community xoops based site : www.overclocking.es



52
3lr0n
Re: data from custom user fields on forums
  • 2009/4/27 21:44

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


I tried putting inside php tags the code in the newbb_thread.html template, but i ve got an non object error.

Would be better to put this fucntion inside the /include/functions.php or viewtopic.php?,

and how to set this to a smarty variable?

any help will be aprreciated :d

thks
Spanish Overclocking Community xoops based site : www.overclocking.es



53
3lr0n
Re: data from custom user fields on forums
  • 2009/4/14 21:49

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


bump!
Spanish Overclocking Community xoops based site : www.overclocking.es



54
3lr0n
Re: here we are: switching themes from selectable themes with a link ...
  • 2009/4/13 14:09

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


The theme change works for registered users (i cant find where to deny the persmission to change theme for users), and all the themes in the site are user selectible.

When the user logout the theme went to default (this is ok as the session is over) but when a user, who has click on for example, blue theme, in his last login, logout and make login again.. the theme is not blue, is red (default one).

I want this preference to be saved for registered users (the theme changer is not shown for anonymous yet).

thks
Spanish Overclocking Community xoops based site : www.overclocking.es



55
3lr0n
Re: here we are: switching themes from selectable themes with a link ...
  • 2009/4/13 5:59

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Thks guia

it works..


I just change the code to

if (!empty($_REQUEST['xoops_theme_select']) && in_array($_REQUEST['xoops_theme_select'], $xoopsConfig['theme_set_allowed'])) {
    
$xoopsConfig['theme_set'] = $_REQUEST['xoops_theme_select'];
    
$_SESSION['xoopsUserTheme'] = $_REQUEST['xoops_theme_select'];
} elseif (!empty(
$_SESSION['xoopsUserTheme']) && in_array($_SESSION['xoopsUserTheme'], $xoopsConfig['theme_set_allowed'])) {
    
$xoopsConfig['theme_set'] = $_SESSION['xoopsUserTheme'];


But, is there any way to have the changes store in database?, i mean,, when the session is over the theme became the default again..

thks
Spanish Overclocking Community xoops based site : www.overclocking.es



56
3lr0n
Re: here we are: switching themes from selectable themes with a link ...
  • 2009/4/12 20:33

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


I resurrect this post to ask if there is a way to do this.. it seems to work with old versions, but not with 2.3.3 (no line 261 or loadtheme in template.php).

Any way of changing themes from a link?

thks in advance
Spanish Overclocking Community xoops based site : www.overclocking.es



57
3lr0n
Re: news 1.63 spotlight image
  • 2009/4/8 21:12

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


The img tag works on all site, the problem is not the tag, i think the problem is that

$myts->displayTarea($options[7], $spotlightArticle->nohtml

displays a text link to the uploaded image, not a <img>..

BTW I dont know the options of the 3nd argument, the nohtml.. could be there must be another argument to show the plain text? (so i can put in between <img> code?)

Spanish Overclocking Community xoops based site : www.overclocking.es



58
3lr0n
Re: news 1.63 spotlight image
  • 2009/4/8 6:12

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


guia: Same result.. :(

Bandit-X: I cant do it directly, asi is the image is in the textfield option 7 of the block, I tried to do this

$spotlight['image'] = sprintf("[img]%s[/img]", ,$myts->displayTarea($options[7], $spotlightArticle->nohtml));


I obtain a clickable link and can see the img tags on the block, not the image :/
Spanish Overclocking Community xoops based site : www.overclocking.es



59
3lr0n
Re: news 1.63 spotlight image
  • 2009/4/7 21:15

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


The code ive obtained is

Quote:
<a href='http://mydomain/modules/news/article.php?storyid=5'><a href="mydomain/uploads/img49d7132b38b75.jpg" title="mydomain/uploads/img49d7132b38b75.jpg" rel="external">mydomain/uploads/img49d7132b38b75.jpg</a></a>



From this piece of php code (block_top.php)

Quote:


$spotlight['image'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL.'/modules/news/article.php?storyid='.$spotlightArticle->storyid(),$myts->displayTarea($options[7], $spotlightArticle->nohtml));


The smarty vble is <{$block.spotlight.image}>

Id tried to change the code in various ways, but im not be able to have the imae displayed as i guess the $myts->displayTarea send a link to the image (i mean, not a plain text of the route or a <img>, instead of this a <a href="route to the image">route to the image</a>).

Thks in advance
Spanish Overclocking Community xoops based site : www.overclocking.es



60
3lr0n
Re: news 1.63 spotlight image
  • 2009/4/7 15:19

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


I mean the image is set on the block textfield for "spotlight image".

For example, you publish a piece of news and add the image with the image manager, so the route to the image is "http://yourdomain/uploads/image.jpg".

Instead of a <img src... a <a href=" is show in the block, so i can see the link to the image.. not the image.

I checked the block_top.php and it uses a <a href="%s">%s</a>, with a sprinf function.. (i cant access the code now, im remembering it).

thks in advance
Spanish Overclocking Community xoops based site : www.overclocking.es




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 15 »



Login

Who's Online

264 user(s) are online (183 user(s) are browsing Support Forums)


Members: 0


Guests: 264


more...

Donat-O-Meter

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

Latest GitHub Commits