181
jeffgr
Re: How to make a navigation link in catads?
  • 2006/9/20 13:08

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Bump?

If someone could lend me a hand with this I would really appreciate it... my classifieds site is really picking up, and this seems to be an essential feature to me. I've tried a number of things to get it working to no avail... any ideas?



182
jeffgr
How to make a navigation link in catads?
  • 2006/9/2 19:00

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hello Xoopsers!

I am using the module catads to display classified ads on my site. The module offers the option to display a number of new ads on the front page of the module (the number of ads you can set in the module admin section). I have set it to display the 50 latest ads.

Can anyone help me with the code I need to put on the bottom of the index page, to navigate to the "next 50" new ads that are submitted? So someone can go to the main module page, see the 50 latest ads, and then hit a "previous ads" link, to go down the list of ads, displayed in the order they were submitted? Each page of previous new ads would have this link at the bottom, to both "previous 50" and "next 50" ads.

Thanks in advance for your advice,

Jeff



183
jeffgr
xoops_userid issue
  • 2006/6/15 4:30

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hi everyone,

I'm trying to modify some code, and am stuck on the following issue...


My template code is listed below in the "full description of the issue." It uses

echo "<br>" . "{$xoops_uname}";

in php code. For some reason, that's not being translated.

Isn't that one of the Smarty Variables that are supposed to be available in all modules?

I tried including header.php, but that broke the code altogether, giving an error about a call to a nonmember function. I also tried using $xoopsUser->getVar('uid'), but that gave the same error.

Here's the info:


XOOPS Version: 2.0.13.2
Module Name/Version: Tiny D0 2.22
PHP Version: 4.4.2
MySQL Version: 4.1.14
Web Server Software (Apache/IIS/Other): Apache
Operating System: XOOPS on Windows, MySQL on Debian
Theme you are using: filthy_blue
Custom template: (Yes/No) Yes
PHP Debug Messages:
Here's the offending line in the php debugger:

Notice [PHP]: Only variable references should be returned by reference in file kernel/object.php line 289
=> Notice [PHP]: Undefined variable: xoops_uname in file class/xoopsblock.php(146) : eval()'d code line 2
Notice [PHP]: Only variable references should be returned by reference in file class/xoopsblock.php line 149

MySQL Debug Messages:
Not relevant

Smarty Debug Messages: (Relevant ones)
{$xoops_uname} Group1
{$xoops_userid} 4

A full description of the issue:

Here's my template code:

echo "hello";
echo "<br>" . "{$xoops_uname}";
echo "<br>" . "{X_SITEURL}";
echo "<br>goodbye";

The SITEURL shows up on the page, the xoops_userid does not.

The PHP debug specifically says xoops_uname is not defined. However, the Smarty debug window shows the variables and their values just fine!

Isn't the xoops_uname defined in all modules/templates?

Any help will be most appreciated!

Thanks,
Jeff



184
jeffgr
Newbb2 new user mailing delay?
  • 2006/1/19 22:21

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hi everyone,

I seem to be having a problem where when a new user registers on my newbb2 forum, it takes quite a while, sometimes several hours, for them to get the verification email, as opposed to right way. I know this could have to do with many things outside of Xoops, but I just wanted to check to see if I haven't set it up incorrectly somehow. Other emails that I send to myself do not seem to take as long to arrive...do you think it could be a problem with how I have set up the forum somehow?

Thanks,

Jeff



185
jeffgr
Help with AdSense -
  • 2005/6/6 21:40

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hello Xoopsers'!

I have a simple site which I am trying to install my AdSense Ads on. No problem with that, I have simply displayed them in a custom block on the right-hand side by cutting and pasting my ad code into the new block. My home page module is News. The problem I am finding is that my Adsense ads are all displaying ads that are focused on the following keywords "password", "portal", "login" etc...clearly, the ads are reading the underlying code of the page, rather then the actual content of the site (which has nothing to do with those words). This situation only occurs on the front page, where all the news stories are displayed. It doesn't occur on the actual story pages however, so the ads are correctly focused on those pages. The custom block displaying my ads is in the same place throughout the site...

Does anyone have any idea on how to get AdSense to "read" the actual content of my site, on the home page, where the News module is selected? I can't change the actual Adsense code, but is there any way that I can get search engine spiders to read the content of my news spiders first?

I tried some of the seo hacks in the FAQ and they didn't work...I don't think that's what I'm really looking for however...I'm more looking for a way to create a link for the spider to follow directly to my news stories...any idea on how to do this?

Thanks!

Jeff



186
jeffgr
Re: Is this a valid physical path?
  • 2005/2/5 12:02

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


thank you jd, I will contact them about this! I just wanted to make sure before I called them...thanks for your help!



187
jeffgr
Is this a valid physical path?
  • 2005/2/5 11:40

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hey everybody,

I'm trying to install XOOPS with a new web host, and am getting hung up in the installation process...

On the Chek url page of the Initial setup, I get the following information:

"Physical path is correct.
Physical path must be a directory. (this is the error!)
Virtual path is a valid URL."

"The server path to your XOOPS root directory: /home/.sites/66/site39/web"

My question is, is the above server path a valid path for an XOOPS instalation? The ".sites" part just seems strange to me...is that the problem? Should I ask the hosting provider to change this somehow?

Thanks in advance for your thoughts!

Jeff



188
jeffgr
Re: New Shorturls hack?
  • 2005/1/27 18:34

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


ok, I have my site athttp://www.web-start.biz all set up now...now you can see how I am using this way of hiding the url...

Jeff



189
jeffgr
Re: New Shorturls hack?
  • 2005/1/25 20:06

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


thanks for your thoughts...

yes, I thought of that also...because the url is masked, most people wouldn't be able to figure out what the exact url of the article is..unless they hit the "send-to-a-friend option", and got the url from there etc...but yeah, thats beyond most users

I was more thinking that this is a good way to disguise the url for people who ar using XOOPS as a back-end cms, for small, brochure style web sites (so sites where there is no lot of updating going on, up the user still has the ability to update the content if they wish)

as far as search engines go, I find that if you put you page links in the "noframes" tag, googlebot will index your pages. Of course, if you have a lot of pages, this would be a pain...

I am fooling around with this idea on my own site at the moment, located at www.web-start.biz ....I'm just putting everything back together now, and may turn the site on and off as i do so, but you can see what I mean if you check out the site in a few days...

Jeff



190
jeffgr
New Shorturls hack?
  • 2005/1/25 19:33

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hey everybody,

(i think my original post dissapeard when I submitted it, so I am posting this again)

I think I figured out a way to make a simple shorturls hack...

-create a frameset, with only one frame window. The one frame window will fill up the entire screen. Make sure you set the frame and frameset to "noscroll" and "noresize". Then have index.php load into this main frame. The site should appear as normal, except that is is loading into this giant invisible frame...and the frameset hides the long urls...so all that you end up seeing is www.domain.com.

seems to work for me so far...can anyone think of any cons to this idea that I may not have thought of?

this is the code of the index.htm frameset file...

<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset rows="100%,0%" cols="*" frameborder="no">
<frame src="index.php" name="mainFrame" frameborder="no" scrolling="no">
<frame src="bottom.htm" frameborder="no" scrolling="no">
</frameset>
<noframes><body>

</body></noframes>
</html>

(ok, actually there are two frames in the frameset, but the one that has a dimension of 0% is called bottom.htm)

Jeff

edit: ahhh,ok, i am having some problems scrolling around on certain pages...so this means that I have to change the scroll options to yes, and may have to fiddle around with either the theme or certain module templates so that the page does not end up with a side scroll bar.




TopTop
« 1 ... 16 17 18 (19) 20 »



Login

Who's Online

217 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 217


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