11
middleton
Re: Best image gallery?
  • 2007/1/24 4:25

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


I use the one that's based on coppermine -- it does everything you want. Now if only I can remember the name.. xcgallery?



12
middleton
Re: Module File for ? Not Found
  • 2007/1/24 4:22

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


It could simply be the fact that you may have an empty folder in your /modules directory, or a folder within this directory that doesn't contain a xoops_version.php file in it.

I think XOOPS expects every subdirectory within /modules to contain module content, so it will complain if it finds a directory that doesn't.



13
middleton
Re: How to: Showing users Avatar within userpage?
  • 2007/1/17 20:08

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


Unfortunately I put my best guesses in the last message. I'm not a coder so anything beyond what I added is beyond me. :(

Sorry.



14
middleton
Re: How to: Showing users Avatar within userpage?
  • 2007/1/17 1:47

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


Try adding this to a template (html) file:

<{$xoops_avatar}>


Or, try adding this code somewhere in a php file:
$av_img "<img src='".XOOPS_UPLOAD_URL."/".$xoops_uname->getVar("user_avatar")."' alt='' />";

Then you can probably find someplace in the php file where it outputs the html. That's where you'd add the $av_img field.

Not much of a coder so I can't help you out too much. But I wouldn't want your question to go unaswered (don't get me started! )



15
middleton
Re: Word Censor
  • 2007/1/17 1:21

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


You might try to hack the text sanitizer.

/class/module.textsanitizer.php



16
middleton
php script to collect external db info
  • 2007/1/14 0:17

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


Hey Gang,

I'm looking to build a simple php script that will pull info from an external db, and save it into a simple tab/comma/pipe deliminated file. I'm then going to import this file into an existing MySQL XOOPS module db. I'm new to coding, did something similar in CGI, but not sure how to start in PHP.

Say, for example, it's a book list. Here's what I am trying to do: my existing .txt file has a list of book titles, one on each line. The php script should grab each title, execute an existing function, then open up a results file that saves an array of results onto a single line for each title. It's this results file that I will then fiddle with in mysql.

As in:
Loop
Grab the first line from my existing database
Echo "searching for 'title'..."
Execute a pre-built function (getInfo($title))
Open a results db file, enter the getInfo results array onto a new line (deliminated)
Save results file
Loop

I'm not sure if I'm making any sense. ;) I think it's probably simple to do, I've been looking into it but find php scripting more challenging than cgi.



17
middleton
Re: Film Collection Module
  • 2007/1/13 23:49

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


You might also want to look into Booklists v0.8 -- I'm using it with XOOPS 2.0.16. It can be adapted to a film list, but it's all manual entry (no db searching like Griffith).



18
middleton
Re: Blog Module html request
  • 2007/1/13 23:38

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


I've been looking for a blog too, tried wordpress but I think I'll give this one a shot. Although after reading all the comments about it, I'm a little hesitant.



19
middleton
Re: News - "Topic Image" graphics don't work
  • 2007/1/13 2:11

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


Hi Nathan,

I see the topic image just fine -- it's this image, right?
Resized Image

There's no broken images showing up for me, in either IE or Firefox, under recent news, or within the news area itself.

Perhaps you need to empty your browser's cache?


Brad



20
middleton
hack for variable message on each page
  • 2007/1/10 1:36

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


This small hack will do the following:

* display a welcome message on your home page (this message will differ for guests and logged-in members)
* display a different message on all subsequent pages

In your theme.html, add the following code wherever you'd like the message to appear.

<{if $xoops_pagetitle eq $xoops_slogan}>
     <{if 
$xoops_isuser}>Welcome, <{$xoops_uname}>!
     <{else}>
Welcome to <{$xoops_sitename}>!
     <{/if}>
<{else}>
     
Browsing <i><{$xoops_pagetitle}></i>.
<{/if}>


This could be modified to have a different message in every area, for example:

<{if $xoops_pagetitle eq $xoops_slogan}>Home page msg
<{elseif $xoops_pagetitle == "News"}>News page msg
<{elseif $xoops_pagetitle == "Forum"}>Forum page msg
<{else}>Generic msg
<{/if}>


You'd just have to make sure the text in quotes exactly matches the page title.


Brad




TopTop
« 1 (2) 3 »



Login

Who's Online

221 user(s) are online (146 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

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

Latest GitHub Commits