1
metatrox
Include users avatar on main page.
  • 2007/9/21 19:19

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


I want to include a little area of content in the theme that will display the users name and their avatar if they are logged in.

How might I do this?

I tried using this ;
<{if $user.avatar != ""}><img src="<{$user.avatar}>" alt="" width="50" /><{/if}>

from a block and adding it to the theme.html but no luck.

Any help is appreciated.



2
metatrox
Re: Create a separate block without theme
  • 2007/9/18 15:23

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


Im not exactly sure how to attempt either of those so perhaps i could get you to explain what i need to change in the PDA page for the iPhone page.

What do i need to change below so it will display the latest 20 forum posts?

include "mainfile.php";

header("Content-Type: text/html");



echo 
"<html><head><title>"htmlspecialchars($xoopsConfig['sitename'])."</title>

      <meta name='HandheldFriendly' content='True' />

      <meta name='PalmComputingPlatform' content='True' />

      </head>

      <body>"
;



$sql "SELECT storyid, title FROM ".$xoopsDB->prefix("stories")." WHERE published>0 AND published<".time()." ORDER BY published DESC";



$result $xoopsDB->query($sql,10,0);



if (!
$result) {

    echo 
"An error occured";

} else {

    echo 
"<img src='images/logo.gif' alt='".htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)."' border='0' /><br />";

    echo 
"<h2>".htmlspecialchars($xoopsConfig['slogan'])."</h2>";

    echo 
"<div>";

    while (list(
$storyid$title) = $xoopsDB->fetchRow($result)) {

        echo 
"<a href='".XOOPS_URL."/modules/news/print.php?storyid=$storyid'>".htmlspecialchars($title)."</a><br />";



    }

    echo 
"</div>";

}



echo 
"</body></html>";



?>



I ALSO tried to copy index.php and added the code sugested to my theme but it just loads like a normal front page. Not sure what i'm doing wrong with that one either.

My page is www.metatrox.net if this help you guys out any.



3
metatrox
Re: Create a separate block without theme
  • 2007/9/18 5:08

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


Hmm... how do I go about using this?


I want to create a page all by itself that just displays a block. nothing else. no header / footer stuff. Just a block of my choice



4
metatrox
Create a separate block without theme
  • 2007/9/17 18:18

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


Here is what I would like to do. I want to create a page that ONLY displays a custom block of mine. Thats it! None of my menu stuff or other page contents. Kinda like an rss feed but not.

I want to create a page for my iPhone to access the most recent forum topics. But I don't want all the other site stuff loaded. Just the actual block itself. Any ideas how I go about doing something like this?

i know a bit of coding but not a whole lot so if you can put it into easy terms it would be appreciated.



5
metatrox
SmartFaq wont display right for registered users
  • 2007/1/15 22:10

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


Ok well I have checked and rechecked all my permissions and here is what I have discovered.


My website first
http://metatrox.net/gv/

Ok, as admin if I click on "how-to's" it will display a page with a table and three columns.

Category | Q&A | Last Q&A published

Below it will list all my categories ans sub categories in the left column and in the middle column it will show how many how-to's are in each category and on the right column display that last published how-to.

But!

If a registered member goes to that page all they see in the left column are the main categories no sub cats. The middle column shows all zeros as if none exist. The right column is blank. But they are able to click the main cat and go into the sub cat and view the how-to, so they have the permissions to view it but for some reason its not being displayed.

The only way for me to get it to show up correctly is give registered users admin rights and that aint gonna happen.

Any idea from anyone?

It appears that this site displays it correctly but the actual smartfactory site looks like it might have the same problem.



6
metatrox
Setting xoops as my root.
  • 2007/1/2 17:55

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


Ok currently my XOOPS is in a folder metatrox.net/gv

Can i just move the entire contents of the folder into my root without problems? Or will I have to change files? If so what files and how.

Right now metatrox.net is just a splash and I dont want the splash anymore because it seems to be causing problems with the autologin script.

So I want to move my XOOPS to the root directory.



7
metatrox
Re: newbb problems
  • 2006/12/21 5:36

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


Yes i have done that.
i have followed this link twice
http://xoopsdocs.net/modules/dokuwiki/doku.php?id=en:module:released:manual:newbb:install

I have uploaded allt he fireworks and XOOPS editor stuff.



8
metatrox
Re: newbb problems
  • 2006/12/20 23:11

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


Ok now I uploaded all the files for CBB and went to update module and it didnt seem to change anything. I'm still getting the error and nothing looks different.


What the heck am I doing wrong.



9
metatrox
Re: newbb problems
  • 2006/12/20 22:15

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


OK I'm getting extremely frustrated.

I have 2.0.13 system
I have NewBB 2.02

I am unable to edit the forums so that i can change the permissions so other can access it. When i click to edit a forum i get this

Fatal error: Call to undefined function: xoopsformselect() in /home/metatro2/public_html/GV/modules/newbb/class/formselectuser.php on line 34

I cant edit the blocks either I get this

Fatal error: Call to undefined function: getbymodule() in /home/metatro2/public_html/GV/modules/newbb/admin/myblocksadmin.php on line 55


I have tried to just go ahead and upgrade to 2.0.16 but My fantastico messes it up (nothing worked at all) and it doesnt work so I had to restore it.

I then tried installing 2.0.16 manually and i ended up with the same problem (nothing worked at all)


Now someone here posted i try CBB will that work on 2.0.13? Or do I need to upgrade.

I'm trying to do this without losing all the info i have on the site.

I need help I cant seem to figure any of this out.



10
metatrox
Re: newbb problems
  • 2006/12/18 14:56

  • metatrox

  • Just popping in

  • Posts: 11

  • Since: 2006/12/18


On the forums edit i get this
Call to undefined function: xoopsformselect() in /home/metatro2/public_html/GV/modules/newbb/class/formselectuser.php on line 34

and ont he blocks page i get
Fatal error: Call to undefined function: getbymodule() in /home/metatro2/public_html/GV/modules/newbb/admin/myblocksadmin.php on line 55


I updated to latest newbb. Is CBB the same thing? If i update to it will it keep all the posts and such?




TopTop
(1) 2 »



Login

Who's Online

251 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 251


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